package com.leizi.igym.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @TableName t_post
 */
@TableName(value ="t_post")
@Data
public class Post implements Serializable {
    /**
     * 帖子id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 帖子标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 帖子内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 帖子照片
     */
    @TableField(value = "pictures")
    private String pictures;

    /**
     * 发布用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 点赞数量
     */
    @TableField(value = "like_num")
    private Integer likeNum;

    /**
     * 收藏数量
     */
    @TableField(value = "collect_num")
    private Integer collectNum;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 逻辑删除
     */
    @TableField(value = "deleted")
    private Integer deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}